<?php

namespace App\Services\Scenic;


use App\Services\Scenic\Order\ScenicOrderFactoryInterface;
use App\Services\Scenic\Order\TuniuOrderFactory;
use App\Trip\Enums\Scenic\ScenicProvider;

/**
 * 供应商门票查询工厂
 */
class ScenicOrderFactory
{
    public function __construct() {}

    public function TuniuOrder(): TuniuOrderFactory
    {
        return new TuniuOrderFactory();
    }

    public function findOneByProvider(ScenicProvider $provider): ScenicOrderFactoryInterface
    {
        return $provider->getScenicOrderStrategy();
    }
}